moves secret token into .env

Robert Whitney 12 years ago
parent
commit
b5d54ef4dd
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .env.example
  2. 1 1
      config/initializers/secret_token.rb

+ 1 - 0
.env.example

@@ -0,0 +1 @@
1
+APP_SECRET_TOKEN=REPLACE_ME_NOW!

+ 1 - 1
config/initializers/secret_token.rb

@@ -4,4 +4,4 @@
4 4
 # If you change this key, all old signed cookies will become invalid!
5 5
 # Make sure the secret is at least 30 characters and all random,
6 6
 # no regular words or you'll be exposed to dictionary attacks.
7
-Huginn::Application.config.secret_token = 'REPLACE_ME_NOW!'
7
+Huginn::Application.config.secret_token = ENV['APP_SECRET_TOKEN']